package com.dingyang.learn.handmadespringframework.app;

import com.dingyang.learn.handmadespringframework.springframework.DingYangApplicationContext;

/**
 * @author dingyang
 */
public class Application {

    public static void main(String[] args) throws Exception {
        DingYangApplicationContext applicationContext = new DingYangApplicationContext(Config.class);
        IAService aService = (IAService) applicationContext.getBean("aService");
        // aService.say();
        // aService = (AService) applicationContext.getBean("aService");
        // aService.say();
        // System.out.println(aService.print());
        // System.out.println(aService.BService.aService);
        IAService aService1 = (IAService) applicationContext.getBean("aService");
        aService1.impl();
    }

}
